getSystemServiceName

@Nullable
open fun getSystemServiceName(@NonNull context: @NonNull Context, @NonNull serviceClass: @NonNull Class<out Any>): @Nullable String(source)

Gets the name of the system-level service that is represented by the specified class.

Return

The service name or null if the class is not a supported system service.

Parameters

context

Context to retrieve service name from.

serviceClass

The class of the desired service.

See also